/** demo.css */
div#live2d-widget {
  position: fixed;
  transition: 3s;
}

div#live2d-widget canvas#live2d {
  width: 300px;
  height: 300px;
}

div.live2d-toggle {
  margin-left: -100px;
  position: fixed;
  bottom: 66px;
  background: #fa0;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  padding: 5px;
  transition: 1s;
  width: 60px;
  writing-mode: vertical-rl;
}

div.live2d-toggle.active {
  margin-left: -50px;
}
div.live2d-toggle.active:hover {
  margin-left: -30px;
}

div#live2d-widget div.live2d-tips {
  position: absolute;
  width: 250px;
  height: 100px;
  background: #ffbcd8;
  border-radius: 5px;
  border: 1px solid #ff8cc8;
  color: #000;
  filter: blur(5px);
  box-sizing: border-box;
  padding: 10px;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  animation: tipsAnim 25s ease-in-out 5s infinite;
  transition: opacity 1s;
  opacity: 0;
  box-shadow: 0 0 10px 3px rgba(255, 188, 216, 0.7);
  font-family: "黑体";
  font-size: 14px;
  z-index: -1;
}

div#live2d-widget div.live2d-tips.active {
  transition: opacity 0.2s;
  opacity: 1;
  filter: none;
}
div#live2d-widget div.live2d-tips > span {
  color: #29c5ff;
}
div#live2d-widget div.live2d-tools {
  position: absolute;
  bottom: 50%;
  transform: translate(0, 50%);
  right: 30px;
  opacity: 0;
  transition: opacity 1s;
}
div#live2d-widget div.live2d-tools.active {
  opacity: 1;
  transition: opacity 0.5s;
}

div#live2d-widget div.live2d-tools > span {
  line-height: 30px;
  display: block;
}
@keyframes tipsAnim {
  2% {
    transform: translateX(-50%) translate(0.5px, -1.5px) rotate(-0.5deg);
  }
  4% {
    transform: translateX(-50%) translate(0.5px, 1.5px) rotate(1.5deg);
  }
  6% {
    transform: translateX(-50%) translate(1.5px, 1.5px) rotate(1.5deg);
  }
  8% {
    transform: translateX(-50%) translate(2.5px, 1.5px) rotate(0.5deg);
  }
  10% {
    transform: translateX(-50%) translate(0.5px, 2.5px) rotate(0.5deg);
  }
  12% {
    transform: translateX(-50%) translate(1.5px, 1.5px) rotate(0.5deg);
  }
  14% {
    transform: translateX(-50%) translate(0.5px, 0.5px) rotate(0.5deg);
  }
  16% {
    transform: translateX(-50%) translate(-1.5px, -0.5px) rotate(1.5deg);
  }
  18% {
    transform: translateX(-50%) translate(0.5px, 0.5px) rotate(1.5deg);
  }
  20% {
    transform: translateX(-50%) translate(2.5px, 2.5px) rotate(1.5deg);
  }
  22% {
    transform: translateX(-50%) translate(0.5px, -1.5px) rotate(1.5deg);
  }
  24% {
    transform: translateX(-50%) translate(-1.5px, 1.5px) rotate(-0.5deg);
  }
  26% {
    transform: translateX(-50%) translate(1.5px, 0.5px) rotate(1.5deg);
  }
  28% {
    transform: translateX(-50%) translate(-0.5px, -0.5px) rotate(-0.5deg);
  }
  30% {
    transform: translateX(-50%) translate(1.5px, -0.5px) rotate(-0.5deg);
  }
  32% {
    transform: translateX(-50%) translate(2.5px, -1.5px) rotate(1.5deg);
  }
  34% {
    transform: translateX(-50%) translate(2.5px, 2.5px) rotate(-0.5deg);
  }
  36% {
    transform: translateX(-50%) translate(0.5px, -1.5px) rotate(0.5deg);
  }
  38% {
    transform: translateX(-50%) translate(2.5px, -0.5px) rotate(-0.5deg);
  }
  40% {
    transform: translateX(-50%) translate(-0.5px, 2.5px) rotate(0.5deg);
  }
  42% {
    transform: translateX(-50%) translate(-1.5px, 2.5px) rotate(0.5deg);
  }
  44% {
    transform: translateX(-50%) translate(-1.5px, 1.5px) rotate(0.5deg);
  }
  46% {
    transform: translateX(-50%) translate(1.5px, -0.5px) rotate(-0.5deg);
  }
  48% {
    transform: translateX(-50%) translate(2.5px, -0.5px) rotate(0.5deg);
  }
  50% {
    transform: translateX(-50%) translate(-1.5px, 1.5px) rotate(0.5deg);
  }
  52% {
    transform: translateX(-50%) translate(-0.5px, 1.5px) rotate(0.5deg);
  }
  54% {
    transform: translateX(-50%) translate(-1.5px, 1.5px) rotate(0.5deg);
  }
  56% {
    transform: translateX(-50%) translate(0.5px, 2.5px) rotate(1.5deg);
  }
  58% {
    transform: translateX(-50%) translate(2.5px, 2.5px) rotate(0.5deg);
  }
  60% {
    transform: translateX(-50%) translate(2.5px, -1.5px) rotate(1.5deg);
  }
  62% {
    transform: translateX(-50%) translate(-1.5px, 0.5px) rotate(1.5deg);
  }
  64% {
    transform: translateX(-50%) translate(-1.5px, 1.5px) rotate(1.5deg);
  }
  66% {
    transform: translateX(-50%) translate(0.5px, 2.5px) rotate(1.5deg);
  }
  68% {
    transform: translateX(-50%) translate(2.5px, -1.5px) rotate(1.5deg);
  }
  70% {
    transform: translateX(-50%) translate(2.5px, 2.5px) rotate(0.5deg);
  }
  72% {
    transform: translateX(-50%) translate(-0.5px, -1.5px) rotate(1.5deg);
  }
  74% {
    transform: translateX(-50%) translate(-1.5px, 2.5px) rotate(1.5deg);
  }
  76% {
    transform: translateX(-50%) translate(-1.5px, 2.5px) rotate(1.5deg);
  }
  78% {
    transform: translateX(-50%) translate(-1.5px, 2.5px) rotate(0.5deg);
  }
  80% {
    transform: translateX(-50%) translate(-1.5px, 0.5px) rotate(-0.5deg);
  }
  82% {
    transform: translateX(-50%) translate(-1.5px, 0.5px) rotate(-0.5deg);
  }
  84% {
    transform: translateX(-50%) translate(-0.5px, 0.5px) rotate(1.5deg);
  }
  86% {
    transform: translateX(-50%) translate(2.5px, 1.5px) rotate(0.5deg);
  }
  88% {
    transform: translateX(-50%) translate(-1.5px, 0.5px) rotate(1.5deg);
  }
  90% {
    transform: translateX(-50%) translate(-1.5px, -0.5px) rotate(-0.5deg);
  }
  92% {
    transform: translateX(-50%) translate(-1.5px, -1.5px) rotate(1.5deg);
  }
  94% {
    transform: translateX(-50%) translate(0.5px, 0.5px) rotate(-0.5deg);
  }
  96% {
    transform: translateX(-50%) translate(2.5px, -0.5px) rotate(-0.5deg);
  }
  98% {
    transform: translateX(-50%) translate(-1.5px, -1.5px) rotate(-0.5deg);
  }
  0%,
  100% {
    transform: translateX(-50%) translate(0, 0) rotate(0);
  }
}
